<?php

/**
 * [PHPFOX_HEADER]
 */
defined('PHPFOX') or exit('NO DICE!');

/**
 * 
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Hai
 */
class Connectsocial_Component_Block_Checkbox_Social_Active extends Phpfox_Component {

    /**
     * Class process method wnich is used to execute this component.
     */
    public function process() {
        $aListSocials = Phpfox::getService('takepicture')->getByUser();
        
        $isChecked = $this->getParam('isChecked', 0);
        
        $this->template()->assign(array(
            'aListSocials' => $aListSocials,
            'isChecked' => $isChecked

        ));
    }

    /**
     * Garbage collector. Is executed after this class has completed
     * its job and the template has also been displayed.
     */
    public function clean() {
        (($sPlugin = Phpfox_Plugin::get('takepicture.component_block_list_clean')) ? eval($sPlugin) : false);
    }

}

?>